﻿namespace com.stifel.BranchMgmt.WebParts.Search
{
    using System.Collections.Generic;

    using com.stifel.BranchMgmtDao;

    using Microsoft.SharePoint;

    public partial class SearchUserControl
    {
        #region Methods

        List<StifelBranchInfo> getBranchsBySpeedDial( string speedDial )
        {
            List<StifelBranchInfo> l = new List<StifelBranchInfo>( );
            StifelBranchInfoDao dao = new StifelBranchInfoDao( SPContext.Current.Web.Url );
            StifelBranchInfo sbi = dao.GetBySpeedDial( speedDial );
            if ( sbi != null )
                l.Add( sbi );
            return l;
        }

        #endregion Methods
    }
}